<!DOCTYPE html>
<html lang="en">

<head>
  <title>ThingJS Prefab(Preview)</title>
  <meta charset="UTF-8" />
  <script src="./libs/thing.min.js"></script>
</head>

<body style="margin: 0; padding: 0">
  <div id="div3d"></div>
  <script>
    var app = new THING.App()
    app.camera.position = [-6.3, 0.03, 15.20];
    app.camera.lookAt([0.38, -0.01, -0.92]);
    THING.App.current.background = [0, 0, 0];

    const object = new THING.Entity({
      url: './dist/index.json'
    });

    object.waitForComplete().then(() => {
      console.info(object.sayHello())
    });
  </script>
</body>

</html>